package day2.Exer;

import java.util.Scanner;

public class Toutest {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (true) {
            System.out.println("请输入游客姓名：");
            Tourist a = new Tourist();
            a.name = in.next();
            if (a.name.equals("n")) {
                break;
            }
            System.out.println("请输入游客年龄：");
            a.age = in.nextInt();
            String ticket = a.setprcie();
            a.showtour();

        }
    }
}
